package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SysProjectAlarm;
import com.ruoyi.system.service.SysAlarmService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author ：zouRiRi
 * @Date ：Created in 2022/3/31 15:32
 */
@Api(tags = "告警项目信息")
@RestController
@RequestMapping("/system")
public class sysAlarmController {

    @Autowired
    private SysAlarmService sysAlarmService;
    @ApiOperation(value = "获取告警项目信息")
    @GetMapping("/information/alarm")
    public AjaxResult getAlarmList(){
      List<SysProjectAlarm> projectAlarms =  sysAlarmService.selectAlarmList();
      return AjaxResult.success(projectAlarms);
    }
}
